# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
pkgname=venc
_pkgname=VenC
pkgver=3.1.1
pkgrel=1
pkgdesc="Static blog generator"
url="https://venc.software/"
arch="noarch"
license="GPL-3.0-or-later"
depends="py3-yaml py3-unidecode"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
source="$_pkgname-v$pkgver.tar.gz::https://framagit.org/denissalem/VenC/-/archive/v$pkgver/$_pkgname-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-v$pkgver/src"
options="!check" # broken test scripts
subpackages="$pkgname-pyc"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
fa4b34a53ff24074eb084a3e1c4b8b0b950e7bbcb03b88d4d11721a21b275f2092280dc1bbf2eaef8859fbf7dfdcb9ba5a3843e348b9328c5930f7f0524cde07  VenC-v3.1.1.tar.gz
"
